package com.service.common;

import com.dao.common.TableInfoMapper;
import com.entity.common.TableInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TableInfoService {

    @Autowired
    private TableInfoMapper tableInfoMapper;

    public  List<TableInfo> getTableInfo(){
        return  tableInfoMapper.getTableInfo();
    }

    public List<TableInfo> getColumnInfo(String tableName){
        return  tableInfoMapper.getColumnInfo(tableName);
    }
}
